import request from '@/utils/request'
/**
 * @see {@link http://ps.jibachuan.com/platform/swagger-ui.html#!/list-adapt}
 */
const listMod = '/list'

/**
 * [lackStore 库存缺货清单]
 */
export function getLackStore(params) {
    return request({
        url: `${listMod}/lackStore`,
        method: 'get',
        params
    })
}

/**
 * [category 仓库货物类别清单]
 */
export function getCategory(params) {
    return request({
        url: `${listMod}/category`,
        method: 'get',
        params
    })

}

/**
 * [company 公司组织/供应商列表]
 */
export function getCompany(params) {
    return request({
        url: `${listMod}/company`,
        method: 'get',
        params
    })
}

/**
 * [individual 消费者列表?]
 */
export function getIndividual(params) {
    return request({
        url: `${listMod}/individual`,
        method: 'get',
        params
    })
}

/**
 * [role 角色类别列表]
 */
export function getRole(params) {
    return request({
        url: `${listMod}/role`,
        method: 'get',
        params
    })
}

/**
 * [supplement 配送订单列表]
 * page
 * limit
 * deliveryId 
 */
export function getSupplement(params) {
    return request({
        url: `${listMod}/supplement`,
        method: 'get',
        params
    })
}

/**
 * [supplier 供应商]
 */
export function getSupplier(params) {
    return request({
        url: `${listMod}/supplier`,
        method: 'get',
        params
    })
}

/**
 * [user 用户列表]
 */
export function getUser(params) {
    return request({
        url: `${listMod}/user`,
        method: 'get',
        params
    })
}

